#include"bubbleSort.h"

void bubble_sort(int arr[], int len)
{
	for (size_t i = 0; i < len; i++)
	{
		for (size_t j = 0; j < len - i - 1; j++)
		{
			if (arr[j]>arr[j+1])
			{
				int temp = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = temp;
			}
		}
	}
}

void my_print(int arr[], int len)
{
	for (size_t i = 0; i < len; i++)
	{
		printf("%d ", arr[i]);
	}
	putchar('\n');
}